/**
 * @file internal_common.h
 * @author bear
 * @brief 内部通用接口
 * @version 0.1
 * @date 2024-03-13
 * 
 * @copyright Copyright (c) 2024
 * 
 */

#include <stdio.h>

#ifndef INTERNAL_COMMON_H
#define INTERNAL_COMMON_H

#ifdef DEBUG

void _internal_debug(const char *format, ...);
#define internal_debug(x, ...) do \
{ \
    printf("\033[32m%s:%d, function: %s, [debug]  ", __FILE__, __LINE__, __FUNCTION__); \
    _internal_debug(x, ##__VA_ARGS__); \
    printf("\033[0m"); \
} while (0);

#else

#define internal_debug(x, ...)

#endif


#endif
